package 桥接模式;
public class Client {
    public static void main(String[] args) {
        FileConvertor fileConvertor = (FileConvertor) XMLUtils.getBean("className1");
        fileConvertor.setDataHandler((DataHandler) XMLUtils.getBean("className2"));
        fileConvertor.translate();
    }
}

